package com.flyiu.data.consistency.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.transaction.annotation.Transactional;

import com.flyiu.data.consistency.check.CheckBack;

/**
 * 标注分布式事务
 * @author flyiu
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Inherited
@Documented
public @interface DistributedTransaction{
    
    String name();
    int keyIndex() default 0;
    String keyName() default "";
//    Class<? extends CheckBack> checkBackClass();
}
